<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * User
 *
 * @ORM\Table(name="sf_user")
 * @ORM\Entity
 * @ORM\HasLifecycleCallbacks
 */
class User
{
    /**
     * @var integer
     *
     * @ORM\Column(name="su_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="su_user", type="string", length=20, nullable=false)
     */
    private $user;

    /**
     * @var string
     *
     * @ORM\Column(name="su_passwd", type="string", length=40, nullable=false)
     */
    private $passwd;

    /**
     * @var string
     *
     * @ORM\Column(name="su_email", type="string", length=100, nullable=false)
     */
    private $email;

    /**
     * @var integer
     *
     * @ORM\Column(name="su_status", type="integer", nullable=false)
     */
    private $status;

    /**
     * @var string
     *
     * @ORM\Column(name="su_nickname", type="string", length=50, nullable=false)
     */
    private $nickname;

    /**
     * @var integer
     *
     * @ORM\Column(name="su_reg_ip", type="integer", nullable=false)
     */
    private $regIp;

    /**
     * @var integer
     *
     * @ORM\Column(name="su_reg_time", type="integer", nullable=false)
     */
    private $regTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="su_last_ip", type="integer", nullable=false)
     */
    private $lastIp;

    /**
     * @var integer
     *
     * @ORM\Column(name="su_last_time", type="integer", nullable=false)
     */
    private $lastTime;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set user
     *
     * @param string $user
     * @return User
     */
    public function setUser($user)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user
     *
     * @return string 
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * Set passwd
     *
     * @param string $passwd
     * @return User
     */
    public function setPasswd($passwd)
    {
        $this->passwd = $passwd;

        return $this;
    }

    /**
     * Get passwd
     *
     * @return string 
     */
    public function getPasswd()
    {
        return $this->passwd;
    }

    /**
     * Set email
     *
     * @param string $email
     * @return User
     */
    public function setEmail($email)
    {
        $this->email = $email;

        return $this;
    }

    /**
     * Get email
     *
     * @return string 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set status
     *
     * @param integer $status
     * @return User
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set nickname
     *
     * @param string $nickname
     * @return User
     */
    public function setNickname($nickname)
    {
        $this->nickname = $nickname;

        return $this;
    }

    /**
     * Get nickname
     *
     * @return string 
     */
    public function getNickname()
    {
        return $this->nickname;
    }

    /**
     * Set regIp
     *
     * @param integer $regIp
     * @return User
     */
    public function setRegIp($regIp)
    {
        $this->regIp = $regIp;

        return $this;
    }

    /**
     * Get regIp
     *
     * @return integer 
     */
    public function getRegIp()
    {
        return $this->regIp;
    }

    /**
     * Set regTime
     *
     * @param integer $regTime
     * @return User
     */
    public function setRegTime($regTime)
    {
        $this->regTime = $regTime;

        return $this;
    }

    /**
     * Get regTime
     *
     * @return integer 
     */
    public function getRegTime()
    {
        return $this->regTime;
    }

    /**
     * Set lastIp
     *
     * @param integer $lastIp
     * @return User
     */
    public function setLastIp($lastIp)
    {
        $this->lastIp = $lastIp;

        return $this;
    }

    /**
     * Get lastIp
     *
     * @return integer 
     */
    public function getLastIp()
    {
        return $this->lastIp;
    }

    /**
     * Set lastTime
     *
     * @param integer $lastTime
     * @return User
     */
    public function setLastTime($lastTime)
    {
        $this->lastTime = $lastTime;

        return $this;
    }

    /**
     * Get lastTime
     *
     * @return integer 
     */
    public function getLastTime()
    {
        return $this->lastTime;
    }
}
